<?php
//调用类
include "DB.class.php";
//接收数据
$data['id'] = $_POST['id'];
//实例化
$db = new DB();
//调用方法
$res = $db->getDel('goods',$data);
//返回值
echo $res;
?>